#pragma once
#include <windows.h>

class general_utilities
{
public:
	static const casablanca::string_t get_unique_filename(
		const casablanca::string_t prefix = L"", 
		const casablanca::string_t suffix = L"")
	{
		UUID uuid;
		UuidCreate(&uuid);

		OLECHAR rgGuid[39] = { 0 };
		StringFromGUID2(uuid, rgGuid, 39);

		casablanca::stringstream_t output;
		output << prefix << rgGuid << suffix;

		return output.str();
	}

public:
	static casablanca::string_t html_decode(casablanca::string_t input)
	{
		replace(input.begin(), input.end(), '+', ' ');
		return input;
	}
};

